package com.linkgie.galaxyframework.service.organization.web;

import javax.validation.constraints.NotBlank;

import com.linkgie.galaxyframework.metadata.DataEntity;
import com.linkgie.galaxyframework.metadata.DataField;
import com.linkgie.galaxyframework.metadata.DataKey;
import com.linkgie.galaxyframework.metadata.DataLabel;
import com.linkgie.galaxyframework.metadata.DataType;
import com.linkgie.galaxyframework.organization.OrganizationState;


@DataEntity
public class OrganizationVO implements OrganizationVI{

	@DataKey
	@DataField(name="Id", order = 1)
	private String id;
	
	@NotBlank
	@DataField(name="编号", order = 3)
	private String code;
	
	@DataLabel
	@NotBlank
	@DataField(name="名称", order = 4)
	private String name;
	
	@DataType(contentType = "plain;multiline=true")
	@DataField(name="备注", order = 20)
	private String description;

	@DataField(name="状态", order = 20, readonly = true)
	private OrganizationState state;

	
	
	@Override
	public String getId() {
		return id;
	}

	@Override
	public String getCode() {
		return code;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public String getDescription() {
		return description;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Override
	public void setCode(String code) {
		this.code = code;
	}

	@Override
	public void setName(String name) {
		this.name = name;
	}

	@Override
	public void setDescription(String description) {
		this.description = description;
	}

	@Override
	public OrganizationState getState() {
		return state;
	}

	public void setState(OrganizationState state) {
		this.state = state;
	}

}
